package com.walala.logic.threads;

/**
 * @author KayLi
 */
public interface IThreadPool {

    /**
     * 添加任务到线程池
     * @param task
     * @return
     */
    public int addTask(Runnable task);

    /**
     * 关闭线程池
     */
    public void shutDown();

    /**
     * 开启线程池监控线程
     * @param sleeps
     * @param full
     */
    public void openMonitor(final int sleeps,final boolean full);

}
